home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / fd2pragma / scripts / makestuff < prev    next >
AmigaDOS Script File  |  2000-02-28  |  1KB  |  41 lines

  1. .key FDFILE/A,CLIBFILE/A,DEST/A
  2. .bra {
  3. .ket }
  4.  
  5. ; $VER: MakeStuff 1.2 (12.01.1999)
  6. ; script to create all the needed library stuff with FD2Pragma
  7. ; DEST must already exist and should be empty.
  8.  
  9. FailAt 21
  10.  
  11. ; ************** Copy the fd to destination directory *******************
  12. MakeDir >NIL: {DEST}fd
  13. Copy {FDFILE} {DEST}fd QUIET
  14.  
  15. ; ********************** This is the C part *****************************
  16. MakeDir >NIL: {DEST}C
  17. MakeDir >NIL: {DEST}C/clib
  18. MakeDir >NIL: {DEST}C/pragma
  19. MakeDir >NIL: {DEST}C/proto
  20. MakeDir >NIL: {DEST}C/inline
  21.  
  22. Copy {CLIBFILE} {DEST}C/clib QUIET
  23. FD2Pragma {FDFILE} TO {DEST}C/pragma/
  24. FD2Pragma {FDFILE} SPECIAL 35 TO {DEST}C/proto/
  25. FD2Pragma {FDFILE} CLIB {CLIBFILE} SPECIAL 40 TO {DEST}C/inline/
  26.  
  27. ; ****************** This is the Assembler part *************************
  28. MakeDir >NIL: {DEST}ASM
  29. MakeDir >NIL: {DEST}ASM/lvo
  30. FD2Pragma {FDFILE} SPECIAL 23 TO {DEST}ASM/lvo/
  31.  
  32. ; ******** This generates a link library for C and Assembler ************
  33. MakeDir >NIL: {DEST}lib
  34. FD2Pragma {FDFILE} CLIB {CLIBFILE} SPECIAL 12 TO {DEST}lib/
  35.  
  36. ; **************************** other stuff ******************************
  37.  
  38. ; nothing more needed :-)
  39.  
  40. FailAt 10
  41.